#ifndef ADD_DTV_H
#define ADD_DTV_H

#include <QWidget>
#include <QMessageBox>
#include"tcl_mstar_dtv_tv.h"
#include"tcl_mtk_dtv_tv.h"

namespace Ui {
class Add_DTV;
}

class Add_DTV : public QWidget
{
    Q_OBJECT
    
public:
    explicit Add_DTV(int ,QList<uint> *atv_num,QMap<uint,uchar> *dtv_air_num,QMap<uint,uchar> *dtv_cable_num,QWidget *parent = 0);
    ~Add_DTV();
signals:
    void Add_MTK_DTV(TCL_MTK_DTV_TV*);
    void Add_MSTAR_DTV(TCL_MSTAR_DTV_TV*);
private:
    Ui::Add_DTV *ui;
    QList<uint> *atv_num;
    QMap<uint,uchar> *dtv_air_num;
    QMap<uint,uchar> *dtv_cable_num;
    int solution;
    void MyInit();
    //QList<QString*>& Get_Items();
    int Check(QList<QString>&);
    int Check_Num(uint);
private slots:
       void Confirm();
       void Check_Num();
       void Check_Freq();
};

#endif // ADD_DTV_H
